export const isImage = (str) => {
  return/.+(.jpeg|.jpg|.gif|.bmp|.png)$/i.test(str)
}

export const isVideo = (str) => {
  return/.+(.mp4|.m4v|.avi|.flv|.mkv|.vob|.rm|.rmvb|.wmv|.asf)$/i.test(str)
}

export const isAudio = (str) => {
  return/.+(.mp3|.m4a|.mpeg|.wma|.wma|.wav)$/i.test(str)
} 